package com.smarthealthcare.mapper;

import java.util.List;
import com.smarthealthcare.domain.Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 预约Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-23
 */
@Mapper
public interface RegisterMapper 
{
    /**
     * 查询预约
     * 
     * @param id 预约主键
     * @return 预约
     */
    @Select("select * from register where id not in(select patient_id from beinhospital)")
    public List<Register> getAll();

    public Register selectRegisterById(Long id);

    /**
     * 查询预约列表
     * 
     * @param register 预约
     * @return 预约集合
     */
    public List<Register> selectRegisterList(Register register);

    /**
     * 新增预约
     * 
     * @param register 预约
     * @return 结果
     */
    public int insertRegister(Register register);

    /**
     * 修改预约
     * 
     * @param register 预约
     * @return 结果
     */
    public int updateRegister(Register register);

    /**
     * 删除预约
     * 
     * @param id 预约主键
     * @return 结果
     */
    public int deleteRegisterById(Long id);

    /**
     * 批量删除预约
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRegisterByIds(Long[] ids);
}
